package model

type SSLOrder struct {
	Id             int64           `gorm:"primarykey"  json:"id" form:"id"`
	Uid            int64           `gorm:"comment:'用户id'" json:"uid" form:"uid"`                //图片分类
	Status         string          `gorm:"type:varchar(16);comment:状态" json:"status,omitempty"` // Possible values are: "pending", "ready", "processing", "valid", and "invalid".
	Expires        string          `gorm:"type:varchar(24);comment:订单过期时间" json:"expires,omitempty"`
	ExpiresTi      int64           `gorm:"comment:证书过期时间一般90天" json:"expires_ti"`
	Identifiers    []Identifier    `gorm:"-" json:"identifiers"`
	NotBefore      string          `gorm:"-" json:"notBefore,omitempty"`
	NotAfter       string          `gorm:"-" json:"notAfter,omitempty"`
	DnsTxt         string          `gorm:"-" json:"dns_txt,omitempty"` //dns解析域名
	Error          *ProblemDetails `gorm:"-" json:"error,omitempty"`
	Authorizations []string        `gorm:"-" json:"authorizations,omitempty"`
	DnsDomain      string          `gorm:"type:varchar(128);comment:解析的域名"  json:"dns_domain,omitempty"`   //dns解析值
	Authorization  string          `gorm:"type:varchar(128);comment:验证的链接" json:"authorization,omitempty"` //把上面的那个json一下保存起来
	Finalize       string          `gorm:"type:varchar(128);comment:取消的链接" json:"finalize,omitempty"`
	Certificate    string          `gorm:"type:varchar(24);comment:凭证" json:"certificate,omitempty"`
	Replaces       string          `gorm:"type:varchar(24);comment:替换" json:"replaces,omitempty"`
	Domain         string          `gorm:"type:varchar(48);comment:域名" json:"domain,omitempty"`
	Mail           string          `gorm:"type:varchar(48);comment:邮箱" json:"mail,omitempty"`
	Token          string          `gorm:"type:varchar(128);comment:token" json:"token,omitempty"` //已经拼接的token
	//把三个验证的url还有authtoken保存起来
}
